<template>
    <div class="profile">
      <div id="content" v-html="companyInfo">

      </div>

    </div>
</template>

<script>
  import global from '../public/global.vue'
    export default {
        name: "profile",
      data() {
        return {
          companyInfo:"",
        }
      },
      created: function () {
        let self = this;
        document.title = "公司简介";
        this.$http.get(global.apiUrl  + '/companyInfo/getCompanyInfo?type=1')
          .then(res => {
            self.companyInfo=res.data.data.content;
            //document.getElementById('content').InnerHTML(res.data.content);

          }).catch(function (err) {
        })
      },
      mounted(){
          let wth=document.getElementById('content').getElementsByTagName('img');
          setTimeout(()=>{
            wth[0].style.width="100%";
          },500)

      },
    }
</script>

<style lang="less" scoped>
  img{
    width: 100%;
  }
  h2{
    font-size: 1.2rem;
    text-align: center;
    font-weight: 500;
    padding: 20px 0;
  }
  .profile{
    width: 100%;
    min-height: 30px;
    font-size: 0.9rem;
    margin: 0 auto;
    img{
      width:100%;
    }
  .pro_text{
    padding-bottom: 10px;
    color: #6B6B6B;
  }
  .pro_buttom{
    width: 95%;
    margin: 0 auto;
    position: absolute;
    text-align: center;
    bottom: 10px;
    color: #bdb7b7;
    font-size: 0.6rem;
  }

  }
  #content{
    width:100%;
    height:100%;

  }

</style>
